package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.DonornDreamCenterLinkEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface DonornDreamCenterLinkDao {
	
	int addDonornDreamCenter(DonornDreamCenterLinkEntity dreamCenter);
	
	int deleteDonornDreamCenterByDcId(@Param("dcid") String dcid, @Param("dr") int dr);
	
	int deleteDonornDreamCenterById(DonornDreamCenterLinkEntity donornDreamCenter);
	
	int updateDonornDreamCenterById(DonornDreamCenterLinkEntity donornDreamCenter);
	
	DonornDreamCenterLinkEntity queryDonornDreamCenterById(@Param("donornId") String donornId, @Param("dcid") String dcid);
	
	List<DonornDreamCenterLinkEntity> queryDonornDreamCentersByDcId(@Param("dcid") String dcid);
}